package com.chixing.ih.module.admin.service.Impl;

import com.chixing.ih.module.admin.mapper.AdminEchartsMapper;
import com.chixing.ih.module.admin.pojo.dto.City;
import com.chixing.ih.module.admin.service.IAdminEchartsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class AdminEchartsServiceImpl implements IAdminEchartsService {

    @Autowired
    private AdminEchartsMapper adminEchartsMapper;

    @Override
    public long transactionData(long mouth, long year) {
        return adminEchartsMapper.transactionData(mouth, year);
    }

    @Override
    public long taskData(long mouth, long year) {
        return adminEchartsMapper.taskData(mouth, year);
    }

    @Override
    public Integer userData(int year) {
        return adminEchartsMapper.userData(year);
    }

    @Override
    public Integer vipData(int year) {
        return adminEchartsMapper.vipData(year);
    }

    @Override
    public List<City> cityData() {
        return adminEchartsMapper.cityData();
    }
}
